﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class WebUserControlCalendar : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Label1.Text = DateTime.Now.ToString("dd/MM/yyyy");
        //Literal1.Text = "To Do List on " + DateTime.Now.ToString("dd/MM/yyyy");
    }
    protected void Calendar1_SelectionChanged(object sender, EventArgs e)
    {
        Label1.Text = Calendar1.SelectedDate.ToString("dd/MM/yyyy");
        //Literal1.Text = "To Do List on " + Calendar1.SelectedDate.ToString("dd/MM/yyyy");
        //Calendar1.Visible = false; //hiding the calendar.
    }
    protected void Button1_Click(object sender, EventArgs e)
    {

    }
}
